using System.Reflection;
using System.Resources;
using Send2Sharepoint.Common;

namespace Send2Sharepoint.Explorer
{
    class DocumentItem : WorkItem
    {
        readonly ResourceManager _rm = new ResourceManager("Send2Sharepoint.Resources", Assembly.GetExecutingAssembly());
        private readonly string _fileName;

        public DocumentItem(string fileName)
        {
            _fileName = fileName;
        }

        internal override void Upload(System.ComponentModel.BackgroundWorker worker, System.ComponentModel.DoWorkEventArgs e)
        {
            if (_fileName.Length != 0)
            {
                //Do Import
            }
            else
            {
                Logging.WriteToLog(_rm.GetString("NoDocument"));
            }
        }
    }
}